{extend name='admin@public/content'}

{block name="content"}

<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">订单地区</label>
        <div class="layui-input-inline">
            <select name="area" lay-verify="required" class="layui-input" style="display: block;">
                <option value="">请选择要查询的地区</option>
                {foreach $areas as $area }
                <option value="{$area.id}" {if condition="$Think.get.area == $area.id"} selected="selected"{/if} >{$area.area_name}</option>
                {/foreach}

            </select>

        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">订单状态</label>
        <div class="layui-input-inline">
            <select name="pay_status"  lay-verify="required" class="layui-input" style="display: block;">
                <option  id="all" >请选择要查询的订单状态</option>
                {foreach name="orderPaystatus"  item="vo" key="k" }
                <option value="{$k}"  {if condition="($Think.get.pay_status == $k)"} selected="selected"{/if}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">订单时间</label>
        <div class="layui-input-inline">
            <input name="date" id='range-date' {if isset($date)}value="{$date}"{else}value="{$Think.get.date|default=''}"{/if}  placeholder="请选择要查询的时间段" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">机器编码</label>
        <div class="layui-input-inline">
            <input name="machine_no" value="{$Think.get.machine_no|default=''}" placeholder="请输入机器编码" class="layui-input">
        </div>
    </div>



    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>

    </div>

</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->



<!--{empty name='list'}-->
<p class="help-block text-center well">没 有 记 录 哦！</p>
<!--{else}-->
<input type="hidden" value="resort" name="action">
<table class="layui-table" lay-skin="line">
    <thead>
    <tr>
        <th class='text-left nowrap'>已付款</th>
        <th class='text-left nowrap'>未付款</th>
        <th class='text-left nowrap'>付款失败</th>
    </tr>
    <tbody>
        <tr>
            <th style="height: 100px; font-size: 50px;">{$list['success']|fenToyuan}</th>
            <th style="height: 100px; font-size: 40px;">{$list['noPay']|fenToyuan}</th>
            <th style="height: 100px; font-size: 40px;">{$list['faild']|fenToyuan}</th>
        </tr>
    </tbody>
    </thead>
    <tbody>



    </tbody>
</table>
<!--{/empty}-->

<script type="text/javascript">
    $(function () {
       status = '{$Think.get.pay_status}';
       if(status !=='0' && status !=='1' && status !=='2'){
           $("#all").attr("selected",true);
       }
    });

</script>

{/block}